package com.newway.common.context;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 当前用户信息
 */
@Data
@TableName("user_info")
public class UserInfo implements Serializable {

    @TableId
    private String id;

    private String userName;

    private String password;

    @TableField(exist = false)
    private String confirmPassword;

    private String avatar;
    //用户来源 wechat、system
    private String userFrom;

    private String phoneNo;

    private String address;

    private String sexy;

    private String city;

    private String nickName;

    private String bio;

    private Integer age;

    private String email;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime joinTime;

}
